define([], function(){
    var nqcols = [
        {name: 'id', display: 'id', width: 10, type: 'text', disabled: false},
        {name: 'cols1', display: '状态', width: 80, type: 'text', disabled: true},
        {name: 'cols2', display: '类型', width: 80, type: 'text', disabled: true},
        {name: 'cols3', display: '邮件通知', width: 80, type: 'text', disabled: true},
        {name: 'cols4', display: '短信通知', width: 80, type: 'text', disabled: true},
        {name: 'cols5', display: '电话通知', width: 80, type: 'text', disabled: true},
        {name: 'cols6', display: '团队编号', width: 150, type: 'text', disabled: true},
        {name: 'cols7', display: '订单号', width: 150, type: 'text', disabled: true},
        {name: 'cols8', display: '接收人', width: 80, type: 'text', disabled: true},
        {name: 'cols9', display: '接收部门', width: 100, type: 'text', disabled: true},
        {name: 'cols10', display: '创建人', width: 100, type: 'text', disabled: true},
        {name: 'cols11', display: '创建部门', width: 150, type: 'text', disabled: true},
        {name: 'cols12', display: '提出时间', width: 100, type: 'text', disabled: true}

    ];


    var notification_query = avalon.define({
        $id:"notification_queryDetail",
        nqdept:"",
        nqdeptname:"",
        nquser:"",
        nqusername:"",
        nqsearchfunc:function () {
            avalon.vmodels['nq_dg'].searchData({})
        },
        $nqdropdowndept:{
            pullDataFuncUrl:"../json/dropdown.department.json",
            serverside:true,
            wgwidth:"150px",
            fuzzysourceflag:{name: "cName", value: "value"},
            fuzzyServerside:true,
            fuzzypullDataFuncUrl:"../json/dropdown.department.json",
            showsize:3,
            sourceFlag:{name: "cName", value: "value"},
            duplexValue:"nqdeptname",
            outervmid:'notification_queryDetail'
        },
        $nqdropdowndeptuser:{
            pullDataFuncUrl:"../json/dropdown.departuser.json",
            serverside:true,
            wgwidth:"150px",
            fuzzysourceflag:{name: "cName", value: "value"},
            fuzzyServerside:true,
            fuzzypullDataFuncUrl:"../json/dropdown.departuser.json",
            showsize:3,
            sourceFlag:{name: "cName", value: "value"},
            duplexValue:"nqusername",
            outervmid:'notification_queryDetail'
        },
        $nqstatus:{
            width:'161px',
            singleselect:true,
            sourceFlag:{value:"id",text:"name"},
            dataSource:[{name:'未生成',id:1},{name:'未提交',id:2},{name:'待审核',id:3}]
        },
        $nqtype:{
            width:'161px',
            singleselect:true,
            sourceFlag:{value:"id",text:"name"},
            dataSource:[{name:'约签',id:1},{name:'送签',id:2},{name:'出签',id:3},{name:'领签',id:4}]
        },
        $notification_query_gropt:{
            checkbox:true,
            singleSelect:true,
            editable:false,
            autoLoad:false,
            pagerbar:true,
            limit:15,
            bar:false,
            loadUrl: "../json/td.notification_query_result.json",
            cols: nqcols
        }
    });
    return notification_query;
});
